 {FILE {temp_editor}}
<script type="text/javascript">
 //SUBMIT FORM
function check_form(){
	display('&nbsp;','alert_subject');
	display('&nbsp;','alert_content');
	
	var frm_name=document.getElementById("frmSendMessage");
	var aCheck = new Array(); 
	aCheck.push ( new Array('message_subject', 1, 200, "{MESSAGE.input_subject}", false, false,'alert_subject') );
	var bRes = validateFields(aCheck);
	
	if(!bRes)
	{
		return;
	}
	else
	{		
			var y =  tinyMCE.get('message_content').getContent();
			if(y=='')
			{
				display('{MESSAGE.input_content}','alert_content');
				return;
			}
			else
			frm_name.submit();
	}		
	
	
}

 </script>
 <div class="top_list_page"></div>
<form name="frmSendMessage" id="frmSendMessage" action="" method="post" enctype="multipart/form-data">
  <input type="hidden" name="sAction" value="do_add_new"/>
  <table class="adminform" >
    <tr>
      <th colspan="3" scope="col">&nbsp;</th>
    </tr>
    <tr>
      <td>{MESSAGE.subject}<span class="require">*</span>:</td>
      <td>&nbsp;</td>
      <td><input type="text" name="message_subject" id="message_subject" value="{subject}" class="txtbox">
        <span id="alert_subject" class="error">&nbsp;</span> </td>
    </tr>
    <tr>
      <td>{MESSAGE.content}<span class="require">*</span>:</td>
      <td>&nbsp;</td>
      <td><textarea name="message_content" id="message_content" class="mceEditor">{content}</textarea>
        <span id="alert_content" class="error">&nbsp;</span> </td>
    </tr>
    <tr>
      <td>{MESSAGE.to}<span class="require">*</span>:</td>
      <td>&nbsp;</td>
      <td><select name="message_to" id="message_to" style="width:150px;">
          <!-- BEGIN:rowUser -->
          <option value="{rowUser.admin_id}">{rowUser.admin_username}</option>
          <!-- END:rowUser -->
        </select>
      </td>
    </tr>
  </table>
</form>
